package com.controller;

import lombok.Data;

@Data // 自动生成 set,get,toString 方法
public class Result {
    private int code;
    private Object data;
    private String msg;

    public Result() {
    }

    public Result(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(int code, Object data) {
        this.code = code;
        this.data = data;
    }
}
